package com.zcf.service.impl;

import com.nanyang.dao.GoodsDao;
import com.nanyang.entity.Goods;
import com.nanyang.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsServiceImpl implements GoodsService {


    @Autowired
    private GoodsDao goodsDao;


    @Override
    public List<Goods> list() {
        List<Goods> all = goodsDao.findAll();

        return all;
    }
}
